<template>
    <div id="app">
        <router-view v-wechat-title='$route.meta.title'/>
    </div>
</template>
<script>
    export default {
        name: 'app',
        data() {
            return {
                selected: '外卖'
            };
        },
        created() {

        },
        mounted() {
            // this.getData();
        },
        methods: {
            // 获取 easy-mock 的模拟数据
            //A0038335 单单
            //A0037835 大成哥
            //A0000206 chengzhi
            getData() {
                this.loading = true
                const myData = {}
                this.$api.robList(myData).then((res) => {
                    console.log(res)
                    this.tableData = res.records //[1,2,3]
                    this.pageTotal = parseInt(res.totalCount)
                    this.loading = false
                }).catch((err) => {
                    console.log(err)
                    this.loading = false
                })
            },
        }
    };
</script>
<style>
    html {
        margin: 0;
        padding: 0;
        height: 100vh;
        box-sizing: border-box;
    }

    body {
        margin: 0;
        padding: 0;
        min-height: 100vh;
        background-color: #ffffff;
    }

    * {
        box-sizing: inherit;

    &
    :before,

    &
    :after {
        box-sizing: inherit;
    }

    }
    img {
        width: 100%;
        height: auto;
        vertical-align: top;
        content: normal !important;
    }

    [aspectratio] {
        position: relative;
    }

    [aspectratio]::before {
        content: '';
        display: block;
        width: 1px;
        margin-left: -1px;
        height: 0;
    }

    [aspectratio-content] {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
    }

    [flexContainer] {
        display: flex;
        width: 750px;
    }

    .block {
        margin-top: 15px;
    }

    ul, li {
        list-style: none outside none;
        margin: 0;
        padding: 0;
    }

    figure {
        display: block;
        margin: 0;
    }
</style>
